package edu.jmu.bean.attendance;

import java.io.Serializable;
import java.util.Date;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 工作时间实体类
 * @author 
 *
 */
@Entity
@Table(name="T_WORKTIME")
public class WorkTime implements Serializable{
	private static final long serialVersionUID = 4834805045208932758L;
	/**上班时间Id**/
 private Integer workTimeId;
    /**上班时间**/
 private Date onDutyTime;
     /**下班时间**/
 private Date offDutyTime;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getWorkTimeId() {
		return workTimeId;
	}
	public void setWorkTimeId(Integer workTimeId) {
		this.workTimeId = workTimeId;
	}
	@Temporal(TemporalType.TIMESTAMP)
	public Date getOnDutyTime() {
		return onDutyTime;
	}
	public void setOnDutyTime(Date onDutyTime) {
		this.onDutyTime = onDutyTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	public Date getOffDutyTime() {
		return offDutyTime;
	}
	public void setOffDutyTime(Date offDutyTime) {
		this.offDutyTime = offDutyTime;
	}


}
